import matplotlib.pyplot as plt
import numpy as np
import os


loss_path = '/home/a409/users/lihaowei/my_model/cosplace/5_17_9_44/Result/acc.txt'
with open(loss_path, 'r') as file:
    loss = []
    for line in file:
        line = line.split(',')
        loss.append(float(line[0]))

    plt.figure(figsize=(20, 8), dpi=80)
    plt.plot(loss[:])
    plt.show()

